package com.cqc.screencapture01;

import android.util.Log;

public class LogUtil {

	private static boolean isDebug = true;

	public static void d(String TAG, String content) {
		if (isDebug) {
			Log.d(TAG, content);
		}
	}

	 //�涨ÿ����ʾ�ĳ���
    private static int LOG_MAXLENGTH = 2000;

    public static void dLong(String TAG, String msg) {
		int strLength = msg.length();
		int start = 0;
		int end = LOG_MAXLENGTH;
		for (int i = 0; i < 100; i++) {
			//ʣ�µ��ı����Ǵ��ڹ涨����������ظ���ȡ�����
			if (strLength > end) {
				Log.e(TAG + i, msg.substring(start, end));
				start = end;
				end = end + LOG_MAXLENGTH;
			} else {
				Log.e(TAG, msg.substring(start, strLength));
				break;
			}
        }
    }
}
